package com.itheima.homework.One;

public class Round extends Shape{
    double r;
    double pai = 3.14;

    public Round(double r) {
        this.r = r;
    }

    @Override
    public void S() {
        System.out.println(pai*r*r);
    }

    @Override
    public void L() {
        System.out.println(2*pai*r);
    }
}
